<!--
 * @Author: your name
 * @Date: 2021-08-29 18:07:49
 * @LastEditTime: 2021-08-29 20:02:15
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /frame-project-interview/Users/wanghui/Documents/lgPracticeWork/shop-admin-template/src/views/home/index.vue
-->
<template>
  <h1>home</h1>
  <p>{{ $store.state.count }}</p>
  <p>{{ store.state.count }}</p>
</template>
<script lang="ts" setup>
// import { useStore } from 'vuex'
// import { key } from '../../store/index'

// const store = useStore(key)
// console.log('count', store.state.count)

import { useStore } from '../../store/index'

const store = useStore()
console.log(store.state.count)
</script>
